<div class="modal-header">
    <h3 class="modal-title">{{ 'rename' | translate}}</h3>
</div>
<div class="modal-body">
    <form>
        <div class="form-group">
            <label for="file-name">{{'rename_file' | translate }}: </label>
            <!-- CBASE-100-->
            <input type="text" ng-show="repository" class="form-control" id="file-name" ng-model="newName" ng-keyup="handleEnterKey($event)">
            <input type="text" ng-show="!repository" class="form-control" id="file-name" ng-model="newName" ng-keyup="handleEnterKey($event)" autofocus>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-right-aside" type="button" ng-disabled="newName.length==0" ng-click="ok()" >{{'ok' | translate }}</button>
    <button class="btn btn-default" type="button" ng-click="cancel()">{{'cancel' | translate }}</button>
</div>